﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Chen.IdentityServer4
{
    /// <summary>
    /// ModuleAuthority 角色菜单权限
    ///</summary>
    [SugarTable("ModuleAuthority")]
    public class ModuleAuthority
    {
        /// <summary>
        /// 菜单权限ID 
        ///</summary>
        [SugarColumn(ColumnName = "ModuleAuthorityID", IsPrimaryKey = true, IsIdentity = true)]
        public int ModuleAuthorityID { get; set; }
        /// <summary>
        /// 角色ID 
        ///</summary>
        [SugarColumn(ColumnName = "RoleID")]
        public int RoleID { get; set; }
        /// <summary>
        /// 菜单ID 
        ///</summary>
        [SugarColumn(ColumnName = "ModuleID")]
        public int ModuleID { get; set; }
        /// <summary>
        /// 1菜单 2按钮
        /// </summary>
        public int ModuleType { get; set; }
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "CreateDate")]
        public DateTime CreateTime { get; set; }
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "CreateBy")]
        public int CreateBy { get; set; }
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "UpdateDate")]
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "UpdateBy")]
        public int? UpdateBy { get; set; }
        /// <summary>
        ///  
        /// 默认值: ((1))
        ///</summary>
        [SugarColumn(ColumnName = "Status")]
        public bool Status { get; set; }
    }
}
